﻿/*************************************************************************
File:   as/menu.as
Author: Duykham
UpDate: 05/11/2006
TODO:
/*************************************************************************/
echo ("#included: menu.as");
///////////////////////////////////////////////////////////////////////////
//TODO: functions
//Streaming button
strm_btn.onRelease=function(){
	_root.gotoAndStop("strm3");
};
//Log button
log_btn.onRelease=function(){
	unLoadMovies();
	_root.gotoAndStop("log");
};
//Playback button
plb_btn.onRelease=function(){
	unLoadMovies();
	//_root.gotoAndPlay(40);
	_root.gotoAndStop("playback");
};
//RFID button
rfid_btn.onRelease=function(){
	unLoadMovies();
	//_root.gotoAndPlay(40);
	_root.gotoAndStop("RFID");
};
//Help button
hlp_btn.onRelease=function(){
	getURL("help.html");
};

//Unload movies function
_global.unLoadMovies = function ()
{
	_root.mySound.stop();
	_root._level0.cam0_mc.unloadMovie();
	_root._level0.cam1_mc.unloadMovie();
	_root._level0.cam2_mc.unloadMovie();
	_root._level0.cam3_mc.unloadMovie();
	_root._level0.cam4_mc.unloadMovie();
	_root._level0.cam5_mc.unloadMovie();
}
